import request from '@/utils/request'

// 查询期末汇总列表
export function listFinnalsummary(query) {
  return request({
    url: '/wm/finnalsummary/list',
    method: 'get',
    params: query
  })
}

// 查询期末汇总详细
export function getFinnalsummary(id) {
  return request({
    url: '/wm/finnalsummary/' + id,
    method: 'get'
  })
}

// 新增期末汇总
export function addFinnalsummary(data) {
  return request({
    url: '/wm/finnalsummary',
    method: 'post',
    data: data
  })
}

// 修改期末汇总
export function updateFinnalsummary(data) {
  return request({
    url: '/wm/finnalsummary',
    method: 'put',
    data: data
  })
}

// 删除期末汇总
export function delFinnalsummary(id) {
  return request({
    url: '/wm/finnalsummary/' + id,
    method: 'delete'
  })
}

// 查询收发存汇总表
export function listInOutReport(query) {
  return request({
    url: '/wm/finnalsummary/inOutReport',
    method: 'get',
    params: query
  })
}
